<form action="{:url()}" method="post" class="form_single"> 
    <div class="box">
      <div class="nav-tabs-custom">
        <div class="tab-content">
          <div class="active tab-pane">
            <div class="box-header">
              <div class='checkbox'>  
                <label class='admin-node-label'>
                  <input class='exportAll' type='checkbox' value="">全选 
                </label>
              </div>
            </div>
            <div class="box-body">     
              <div class='box box-header admin-node-header'>              
                  <div class='box-header'>
                      <div class='checkbox'>
                          {volist name='list' id='vo' key='k'}
                              <label class='admin-node-label'>
                                  <input class='rulesall' type='checkbox' name="export[]" value="{$vo.id}" {if condition="$vo.che == 1"} checked="checked" {/if}  > {$vo['value']}
                              </label>
                          {/volist}
                      </div>
                  </div>
              </div>  
            </div>
          </div>
        </div>
      </div>
      <div class="box-footer">    
        <input type="hidden" name="id" value="{$id}" /> 
        {include file="layout/edit_btn_group"/}
      </div>
    </div>
    <script type="text/javascript">
      $('.exportAll').click(function(){
        if($(this).is(':checked') == true){
          // alert(1);
          $('.rulesall').prop("checked","checked");
        }else{
          // alert(2);
          $('.rulesall').prop("checked","");
        }
      })
    </script>
</form>